<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>登陆</title>
    <link rel="shortcut icon" href="images/favicon.ico"/>
    <link rel="bookmark" href="images/favicon.ico"/>
    <link rel="stylesheet" href="stylesheets/login.css">
    <script src="javascripts/login.js"></script>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>
<body>
<% if(locals.error) { %>
<div class="alert alert-warning">
    <a href="#" class="close" data-dismiss="alert">
        &times;
    </a>
    <strong>错误！</strong><%=error%>
</div>
<%} %>
<div class="container-fluid">


    <div class="row">
        <div class="loginpain">
            <h2>登陆</h2>
            <form method="post">
            <input name="username" type="email" placeholder="登录账号" class="form-control">
            <br>
            <input name="password" type="password" placeholder="输入密码" class="form-control">
            <br>
            <button type="submit" id="loginbtn" class="btn btn-primary">登录</button>
            <button type="button" class="btn btn-link lianjie" onclick="newregister()">注册新账号</button>
            <button type="button" class="btn btn-link lianjie" onclick="retrieve()" >忘记密码</button>
            </form>
        </div>
        <div class="loginpain" style="display: none">
            <h2>注册</h2>
            <form class="form-horizontal" role="form">
                <div class="form-group">
                    <label class="col-md-3 control-label">Email</label>
                    <div class="col-md-9">
                        <input type="text" class="form-control" id="emails"
                               placeholder="请输入邮箱" onblur="verify()"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-md-3 control-label">密码</label>
                    <div class="col-md-9">
                        <input type="password" class="form-control" id="inputPassword"
                               placeholder="请输入密码"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword" class="col-md-3 control-label">密码</label>
                    <div class="col-md-9">
                        <input type="password" class="form-control" id="rePassword"
                               placeholder="确认密码"/>
                    </div>
                </div>
                <button id="zhuce"  type="button"class="btn btn-primary" onclick="register()">注册</button>
                <button type="button" class="btn btn-link lianjie" style="width: 100%" onclick="denglu()">直接登陆</button>
        </div>
        </form>
    </div>
</div>
</div>
</body>
</html>
